function setInput(){
    $("#inputName").attr("value",$("'selectName':selected").text());
	location.replace("physical-exam-set!onClickPhysicalName.action?id=" + $("'selectName':selected").val());
}

function onClickLargeItem(){
	$("#id").attr("value",$("'selectName':selected").val());
    $("#itemParentId").attr("value",$("#oneType").val());
	var form = document.getElementById("physicalExamInputForm");
	form.action="physical-exam-set!onClickLargeItem.action";
	form.submit();
}

function add(){
	$("#itemId").attr("value",$("#secondType").val());
	var form = document.getElementById("physicalExamInputForm");
	form.action="physical-exam-set!onClickAddButton.action";
	form.submit();
}

function  onClickDelete(itemID){
	$("#id").attr("value",$("'selectName':selected").val());
	$("#itemParentId").attr("value",$("#oneType").val());
	$("#itemId").attr("value",itemID);
	var form = document.getElementById("physicalExamInputForm");
	form.action="physical-exam-set!onClickFree.action";
	form.submit();
}

function save(){
	var name = $("#inputName").val();
	if(name == null || name == ""){
		alert("请输入套餐名称");
	}else{
		var form = document.getElementById("physicalExamInputForm");
		form.action="physical-exam-set!save.action";
		form.submit();
	}
}


function jumpPage(pageNo) {
	$("#pageNo").val(pageNo);
	var form = document.getElementById("physicalExamMainForm");
	$form.submit();
}

function onClincInput(){
	var form = document.getElementById("physicalExamMainForm");
	form.action="physical-exam-set!input.action";
	form.submit();
}


function deletePESl(id){
	if(window.confirm("确定要删除吗?")){ 
		$("#id").attr("value",id);
		physicalExamMainForm.action = "physical-exam-set!delete.action";
		$("#physicalExamMainForm").submit();
    }
}





























